Minor hashing refactoring.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Feb 2013 22:42:33 +0000 (14:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Feb 2013 22:42:33 +0000 (14:42 -0800)
commit2872e155c9e574662cd539fa619c1baab2c5bd7c
treecf22d92e213f51cfaf4ed323ce40d8bed2f8c32c
parent36e43ca85bc61ab96a978de6f693a3f856d9477e
Minor hashing refactoring.

* fns.c (SXHASH_REDUCE): Move to lisp.h.
(sxhash_float): Return EMACS_UINT, for consistency with the other
hash functions.
* lisp.h (INTMASK): Now a macro, since SXHASH_REDUCE is now a
non-static inline function and therefore can't use static vars.
(SXHASH_REDUCE): Move here from fns.c, and make it inline.
* profiler.c (hashfn_profiler): Use SXHASH_REDUCE, to be consistent
with the other hash functions.
src/ChangeLog
src/fns.c
src/lisp.h
src/profiler.c